package observerpattern.example;

/**
 * Created by hongchen on 2017/2/27.
 */
public class Client {
    public static void main(String[] args){
        WeinxinGongzonghao weinxinGongzonghao = new WeinxinGongzonghao();

        WeixinUser user1 = new WeixinUser("马化腾");
        WeixinUser user2 = new WeixinUser("马云");
        WeixinUser user3 = new WeixinUser("李彦宏");

        weinxinGongzonghao.attach(user1);
        weinxinGongzonghao.attach(user2);
        weinxinGongzonghao.attach(user3);

        weinxinGongzonghao.setPushMessage("时代在召唤你们");

    }
}
